import { Inject, Injectable, LoggerService } from '@nestjs/common';

@Injectable()
export class MyLogger implements LoggerService {
  @Inject('LOGGER_CONFIG') private readonly config: any;
  log(message: string) {
    if (this.config.enable) {
      console.log(message);
    }
  }
  error(message: string, trace: string) {}
  warn(message: string) {}
  debug(message: string) {}
  verbose(message: string) {}
  fatal(message: string) {}
  info(message: string) {}
  setLogLevels(levels: string[]) {}
}
